import { must } from "../core/logic";
import { Event } from "./Event";
/**
 * @memberof w.event
 */
class ComponentEvent extends Event{
    /**
     * 
     * @param {Number} componentType 参考ComponentType
     */
    constructor(componentType){
        super("ComponentEvent");
        this._componentType=must(componentType);
        this._mode="value";//"value"|"layout" 值改变或结构改变
    }
    set componentType(v){
        this._componentType=v;
        return this;
    }
    get componentType(){
        return this._componentType;
    }
    set mode(v){
        this._mode=v;
        return this;
    }
    get mode(){
        return this._mode;
    }
}
export {ComponentEvent}